﻿using Harmony;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CheatMenu.Patch;
using Logger = BepInEx.Logger;
using BepInEx.Logging;
using Fungus;

namespace CheatMenu
{
    public static class CheatMenuPatcher
    {
        public static void PatchAll()
        {
            var harmony = HarmonyInstance.Create(CheatMenuPlugin.PluginName);
            try
            {
                RandomIntegerPatcher.Patch(harmony);
                InstantTextPatcher.Patch(harmony);
            }
            catch (Exception ex)
            {
                Logger.Log(LogLevel.Error, $"Exception during patching: {ex}");
            }
        }
    }
}
